<template>
  <div></div>
</template>

<script>
  import qs from 'qs';

  export default {
    data() {
      return {};
    },
    components: {},
    watch: {
      $route() {},
    },
    created() {
      document.title = '详情';
    },
    computed: {},
    mounted() {
      const query = qs.parse(window.location.search.replace(/^\?/, ''));
      console.log(query.id);
      if (query.id) {
        window.location.href = `/works.html?id=${query.id}`;
      } else {
        this.$Toast('缺少作品ID，请检查链接');
      }
    },
    methods: {},
  };
</script>

<style lang="less"></style>
